﻿namespace ysh
{
	using Autodesk.Revit.UI;

	/// <summary>
	/// 
	/// </summary>
	public class Main : IExternalApplication
	{
		#region 外部应用公开方法
		/// <summary>
		/// 
		/// </summary>
		/// <param name="application"></param>
		/// <returns></returns>
		public Result OnStartup(UIControlledApplication application)
		{
			//Initiallize whole plugin's user interface.
			var ui = new SetupInterface();
			ui.Initialize(application);

			return Result.Succeeded;
		}

		/// <summary>
		/// 
		/// </summary>
		/// <param name="application"></param>
		/// <returns></returns>
		public Result OnShutdown(UIControlledApplication application)
		{
			return Result.Succeeded;
		}
		#endregion


	}
}
